Initializes a new instance of the DateTimeSeries class.
Namespace: MindFusion.Charting
File: DateTimeSeries.js
SyntaxJavaScript
Copy Code
|
|---|
function DateTimeSeries (dates, values, minDate, maxDate) |
Type: List
A list of Date values.
Type: List
A list of number values.
Type: Date
Identifies the start of the time range.
Type: Date
Identifies the end of the time range.
ExampleThe following code creates a new DateTimeSeries that uses the last 10 years as Date values and an array with income data. The first and last Date in the date array are used as min and max values.
JavaScript
Copy Code
|
|---|
// create a sample series var income = [12, 13.2, 15.6, 17.8, 39, 20, 29, 79, 101, 120, 122]; var series = new DateTimeSeries( |
See Also